﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CameraManages;

namespace LeadThing.AbpZeroTemplate.CameraManages.EntityMapper.CameraManages
{

    /// <summary>
    /// 摄像机管理的数据配置文件
    /// </summary>
    public class CameraManageCfg : EntityTypeConfiguration<CameraManage>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public CameraManageCfg()
        {
            ToTable("CameraManage", AbpZeroTemplateConsts.SchemaName.Basic);



            // 摄像机名称
            Property(a => a.CameraName).HasMaxLength(100);
            // 故障联系人
            Property(a => a.FaultContacts).HasMaxLength(50);
            // 联系电话
            Property(a => a.ContactNumber).HasMaxLength(50);
            // 备注
            Property(a => a.Remarks).HasMaxLength(500);
        }
    }
}